#ifndef WIDGETVIDEO_H
#define WIDGETVIDEO_H

#include <QObject>
#include <QWidget>
#include <QCamera>
#include <QCameraViewfinder>
#include <QVBoxLayout>
#include <QCameraImageCapture>
#include <QCameraInfo>
#include <QException>
#include <QString>
#include <QCameraFocus>

class WidgetVideo : public QWidget
{
    Q_OBJECT
public:
    explicit WidgetVideo(QWidget *parent = nullptr);
    ~WidgetVideo();

    QCamera *camera = NULL;//系统摄像头


    void initCamera(QCamera *camera = NULL);
    void startCamera();
    void stopCamera();

private:
    QVBoxLayout *layoutCamera;

    QCameraViewfinder *cameraViewfinder;//摄像头取景器部件

signals:

};

#endif // WIDGETVIDEO_H
